package com.example.util;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class CookbookImage {
    public Bitmap getmybitmap(String picname) {
        Bitmap bm = null;
        try {
            bm = BitmapFactory.decodeStream(new URL(HttpUtil.Base_url
                    + "/mypic/" + picname).openStream());

        } catch (MalformedURLException e) {
            System.out.println("getmybitmap is bad");
            e.printStackTrace();
        } catch (IOException e) {
            System.out.println("getmybitmap is bad");
            e.printStackTrace();
        }
        return bm;
    }
}
